package vn.student.mylib;
	/*
	
		Class name: Class.java
		Function: Day la lop chua thong tin chi tiet cua mot Class. 
			Lop nay don gian chi chua cac Constructor de khoi tao doi tuong dung luu tru du lieu.
		
	*/
public class Class {
	public String id;
	public String className;
	public String type;
	public String courseID;
	public String location;
	public String timeStart;
	public String timeEnd;
	public String repeat;
	public String dateRepeat;
	public String dateStart;
	public String dateEnd;
	public String instructorID;
	public String instructorName;
	public int assCount;
	public Class(String[] data){
		this.id = data[0];
		this.className = data[1];
		this.type = data[2];
		this.location = data[3];
		this.timeStart = data[4];
		this.timeEnd = data[5];
		this.repeat = data[6];
		this.dateRepeat = data[7];
	}
	public Class(String id,String className,String type,String location,String timeStart,String timeEnd,String repeat,String dateRepeat,String dateStart,int assCount){
		this.id = id;
		this.className = className;
		this.type = type;
		this.location = location;
		this.timeStart = timeStart;
		this.timeEnd = timeEnd;
		this.repeat = repeat;
		this.dateRepeat = dateRepeat;
		this.dateStart = dateStart;
		this.assCount = assCount;
	}
	
	public Class(String id,String className,String type,String courseID,String location,String timeStart,String timeEnd,String repeat,String dateRepeat,String instructorID,int assCount){
		this.id = id;
		this.className = className;
		this.type = type;
		this.courseID = courseID;
		this.location = location;
		this.timeStart = timeStart;
		this.timeEnd = timeEnd;
		this.repeat = repeat;
		this.dateRepeat = dateRepeat;
		this.instructorID = instructorID;
		this.assCount = assCount;
	}
	public Class(String className,String type,String courseID,String location,String dateStart,String dateEnd,String timeStart,String timeEnd,String repeat,String dateRepeat){
		this.className = className;
		this.type = type;
		this.courseID = courseID;
		this.location = location;
		this.timeStart = timeStart;
		this.timeEnd = timeEnd;
		this.repeat = repeat;
		this.dateRepeat = dateRepeat;
		this.dateStart = dateStart;
		this.dateEnd = dateEnd;
	}
	public Class(String id,String className,String type,String courseID,String location,String dateStart,String dateEnd,String timeStart,String timeEnd,String repeat,String dateRepeat,String instructorID,String instructorName,int assCount){
		this.id = id;
		this.className = className;
		this.type = type;
		this.courseID = courseID;
		this.location = location;
		this.timeStart = timeStart;
		this.timeEnd = timeEnd;
		this.repeat = repeat;
		this.dateRepeat = dateRepeat;
		this.instructorID = instructorID;
		this.dateStart = dateStart;
		this.dateEnd = dateEnd;
		this.instructorName = instructorName;
		this.assCount = assCount;
	}
	public Class(String repeat, String dateRepeat, String dateStart,
			String dateEnd) {
		this.repeat = repeat;
		this.dateRepeat = dateRepeat;
		this.dateStart = dateStart;
		this.dateEnd = dateEnd;
	}
}
